//
//  FCToastManager.h
//  FCSRTools
//
//  Created by sobey on 2020/1/8.
//  Copyright © 2020 Summer. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <MBProgressHUD/MBProgressHUD.h>

#define kKeyWindow [[[UIApplication sharedApplication]delegate]window]

#define FCSRColorFromHX(rgbValue) [UIColor \
colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

NS_ASSUME_NONNULL_BEGIN

@interface FCToastManager : NSObject
+ (MBProgressHUD *)showLoading:(UIView *)view;

+ (MBProgressHUD *)showLoading:(UIView *)view text:(NSString *)text;

+ (void)showText:(NSString *)text toView:(UIView *)view time:(CGFloat)time;

+ (void)showText:(NSString *)text toView:(UIView *)view;

+ (void)showText:(NSString *)text;

+ (void)showSuccess:(NSString *)text toView:(UIView *)view time:(CGFloat)time;

+ (void)showSuccess:(NSString *)text toView:(UIView *)view;

+ (void)showSuccess:(NSString *)text;

+ (void)showFial:(NSString *)text toView:(UIView *)view time:(CGFloat)time;

+ (void)showFial:(NSString *)text toView:(UIView *)view;

+ (void)showFial:(NSString *)text;

+ (void)showWarning:(NSString *)text toView:(UIView *)view time:(CGFloat)time;

+ (void)showWarning:(NSString *)text toView:(UIView *)view;

+ (void)showWarning:(NSString *)text;

@end

NS_ASSUME_NONNULL_END
